<template>
    <table class="table table-striped table-bordered">
        <thead>
            <slot name='header'></slot>
            <!-- <tr scope='' col>#</tr>    
            <tr scope='' col>商品名称</tr> 
            <tr scope='' col>价格</tr> 
            <tr scope='' col>标签</tr> 
            <tr scope='' col>操作</tr>  -->
        </thead>
        <tbody>
            <tr v-for="(item,index) in goodsList" :key="item.id">
                <slot name='body' :row="item" :index="index"></slot>
            </tr>
        </tbody>
    </table>
</template>
<script setup>

const props = defineProps({
  goodsList:{
    type:Array,
    required:true,
    default:[]
  } 
})
</script>

